#ifndef __NETTR069_H__
#define __NETTR069_H__

/* Include files. */
#include "standard.h"
#include "cplusplus.h"
#include "netobject.h"

/* Macro constant definitions. */

/* Type definitions. */

struct tr069_header{
	int len;
};

enum status{
	BEGIN = 0,
	ALLOC_DATA,
	READ_DATA,
	END,
};

class nettr069 : public netObject 
{
public:
	nettr069(u32 ip, u16 port, u32 fd);
	virtual ~nettr069();
	virtual int bind();
	int recvMsg();
	int sendMsg();
	int allocbuff();
	int readHeader();
	int readData();

public:
	int _status;
	int _finish;
	int _header_finish;
	char *_buff;
	struct tr069_header _header;
	
};


/* External variable declarations. */

/* External function declarations. */

/* Macro API definitions. */


#endif

